package com.goldman.http.common.s2s.model;

public enum ErrorCode implements IErrorCode {
    SUCCESS(0, "Success"),
    FAILED(1, "System occur exception, please try later."),
    SYS_ERROR(2, "System occur error, please try later."),
    ARG_ERROR(3, "Request is wrong, please try later.");

    private Integer code;
    private String msg;
    ErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
